package com.xinsoft.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xinsoft.entity.dto.CusRepairApproveDTO;
import com.xinsoft.entity.po.CusRepairApprove;

/**
* @author hsm
* @description 针对表【cus_repair_approve(维修验收)】的数据库操作Service
* @createDate 2023-06-25 17:07:00
*/
public interface CusRepairApproveService extends IService<CusRepairApprove> {

    /**
     * 添加验收信息
     * @param cusRepairApproveDTO
     * @return
     */
    CusRepairApprove addRepairApprove(CusRepairApproveDTO cusRepairApproveDTO);

    /**
     * 编辑验收信息
     * @param cusRepairApproveDTO
     * @return
     */
    CusRepairApprove editRepairApprove(CusRepairApproveDTO cusRepairApproveDTO);

    CusRepairApprove submitRepairApprove(CusRepairApproveDTO cusRepairApproveDTO);

    /**
     * 根据id获取验收信息
     * @param id
     * @return
     */
    CusRepairApproveDTO getRepairApprove(Integer id);

    CusRepairApproveDTO getRepairApproveByBreakDownId(Integer breakDownId);
}
